package com.worklogger.structures;

import org.junit.*;

import junit.framework.TestCase;

public class WorkloggerStructuresTester extends TestCase{
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception{
		
	}
	
	@AfterClass
	public static void tearDownAfterClass() throws Exception{
		
	}
	
	@Before
	public void setUp() throws Exception{
		
	}
	
	@After
	public void tearDown() throws Exception{
		
	}
	
	@Test
	public void testProjectCreation(){
		final String NAME = "Test";
		final String NEWNAME = "New Test";
		final String DESC = "This is a test description";
		final String NEWDESC = "This is a new test description";
		
		WorkloggerProject prj = new WorkloggerProject(NAME, DESC);
		
		assertTrue("Project name should be \"Test\"", prj.getTitle().equalsIgnoreCase(NAME));
		assertTrue("Project description should be "+DESC, prj.getDescription().equalsIgnoreCase(DESC));
		
		prj.setTitle(NEWNAME);
		prj.setDescription(NEWDESC);
		
		assertTrue("Project name should now be \"New Test\"", prj.getTitle().equalsIgnoreCase(NEWNAME));
		assertTrue("Project description should now be "+NEWDESC, prj.getDescription().equalsIgnoreCase(NEWDESC));
	}
	
	@Test
	public void testAdditionCreation(){
		
	}
	
	@Test
	public void testDeletionCreation(){
		
	}
	
	@Test
	public void testModificationCreation(){
		
	}
	
	@Test
	public void testProblemCreation(){
		
	}
}
